import request from "@/utils/request"
export const getUserAction = (payload) => {
  return async (dispatch, getState) => {
    const { data } = await request.get('/user/profile')
    // console.log('data数据', data)
    dispatch({ type: 'user/get', data })
  }
}